53 YaPiG 0.92b remote server-side script execution CGI 2004/08/16 Marc Ruef marc dot ruef at computec dot ch http://www.computec.ch computec.ch Marc Ruef marc dot ruef at computec dot ch http://www.computec.ch computec.ch 2004/11/14 2.0 Changed a spelling mistake in the description in version 1.2. Changed the plugin filename in version 1.3. Corrected the plugin structure and added the accuracy values in 1.4. Improved the pattern matching and introduced the plugin changelog in 2.0 tcp 80 open|send GET /index.php HTTP/1.0\n\n|sleep|clsose|pattern_exists HTTP/#.# ### *Powered by*YaPig.* V0.92b* 80 Check is copied from the Nessus plugin (see Nessus ID listed in the sources). aCiDBiTS acidbits at hotmail dot com http://www.solutions.fi 2004/08/08 Yet Another PHP Image Gallery V0.92b Other versions or solutions Cross Site Scripting The remote host seems to be running YaPiG, a PHP Image Gallery script. This version may allow a remote attacker to execute malicious scripts on a vulnerable system. This issue exists due to a lack if sanitization of user-supplied data. It is reported that an attacker may be able to upload content that will be saved on the server with a '.php' extension. When this file is requested by the attacker, the contents of the file will be parsed and executed by the PHP engine, rather than being sent. Successful exploitation of this issue may allow an attacker to execute malicious script code on a vulnerable server. The server should be deactivated or de-installed if not necessary. To make it harder to find the server the daemon could be configured to listen at another port (e.g. 8081). Try to prevent unwanted connection attempts by filtering traffic with firewalling. Alternation of the application banner can confuse an attacker and let him determine the wrong software. Approx. 2 hours Yes http://www.securityfocus.com/bid/10891/exploit/ Yes Yes Medium 3 6 7 5 Medium Nessus is able to do a similar check. CVE-1999-0259 10891 14269 Hacking Exposed: Network Security Secrets & Solutions, Stuart McClure, Joel Scambray and George Kurtz, February 25, 2003, 4th Edition, McGraw-Hill Osborne Media, ISBN 0072227427 http://yapig.sourceforge.net/index.php